package org.otherworld.frame.textwriter;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JTextArea;

public class ActionNewDocument implements ActionListener{

	private JTextArea field;
	public ActionNewDocument(JTextArea field) {
		this.field = field;
	}

	public void actionPerformed(ActionEvent e) {
		this.field.setText("");
		TextWriter.characterInfo.setText("Character count: "+field.getText().length());
	}

}
